Skip to content

feat: pin the WebPC version the site deploys - #27

Merged
codemug merged 1 commit into
mainfrom
feat/webpc-pinned-version
Nov 23, 2026
Merged

codemug merged 1 commit into
mainfrom
feat/webpc-pinned-version

Conversation

@codemug

@codemug codemug commented Nov 23, 2026

Copy link
Copy Markdown
Owner

The site's deploy downloads a pinned, published WebPC version instead of whatever latest-dist holds.

Waits on:

  1. feat(release): versioned releases with one rolling draft webpc#3 merging, which makes every main push keep a draft release;
  2. the draft v0.1.0 being published.

If this merges first, the deploy's "Add WebPC" step gets a 404 for releases/download/v0.1.0, and the site keeps its previous deployment. Merging this PR starts a deploy.

What changes

  • webpc.version (new) holds v0.1.0.
  • scripts/fetch-webpc.sh downloads releases/download/<version> from codemug/webpc. It still checks the SHA-256, still honours WEBPC_RELEASE_URL, and prints the version it added.
  • The README and two comments in the deploy workflow describe the pin. To upgrade WebPC, publish its draft release, then bump webpc.version in a pull request.

How it was checked

  • bash -n scripts/fetch-webpc.sh: syntax ok.
  • A dry run against a local fake release (WEBPC_RELEASE_URL=file:///...) printed "fetch-webpc: added WebPC v0.1.0 ..." and extracted pc/ and third-party/ after the checksum check.
  • Not run: the deploy itself, which needs the published v0.1.0.

The deploy used to download whatever latest-dist held. It now
downloads the published WebPC release named in webpc.version
(v0.1.0), checks its SHA-256 and adds it at /pc/. Upgrading WebPC
means publishing its draft release, then bumping webpc.version in a
pull request, so each deploy is reproducible and a cached download
can never be stale.
@codemug
codemug marked this pull request as ready for review November 23, 2026 07:09
@codemug
codemug merged commit 24183b5 into main Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant